﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CFG = System.Configuration;

namespace AutomatizzazioneCleverConsumit
{
    public static class ConfigUtil
    {
        public static string GetWebSite()
        { 
            return CFG.ConfigurationManager.AppSettings["WebSite"];
        }

        public static string GetWebUser()
        {
            return CFG.ConfigurationManager.AppSettings["WebUser"];
        }
        
        public static string GetWebPassword()
        {
            return CFG.ConfigurationManager.AppSettings["WebPassword"];
        }

        public static string GetExcelPath()
        {
            return CFG.ConfigurationManager.AppSettings["ExcelPath"];
        }

        public static string GetMinutes()
        {
            return CFG.ConfigurationManager.AppSettings["Minutes"];
        }
        public static string GetHours()
        {
            return CFG.ConfigurationManager.AppSettings["Hours"];
        }

        public static string GetInterval()
        {
            return CFG.ConfigurationManager.AppSettings["Interval"];
        }

        public static string GetEmailServer()
        {
            return CFG.ConfigurationManager.AppSettings["EmailServer"];
        }
        public static string GetEmailSender()
        {
            return CFG.ConfigurationManager.AppSettings["EmailSender"];
        }
        public static string GetEmailSenderPassword()
        {
            return CFG.ConfigurationManager.AppSettings["EmailSenderPassword"];
        }
        public static string GetEmailDest()
        {
            return CFG.ConfigurationManager.AppSettings["EmailDest"];
        }
        public static string GetEmailPort()
        {
            return CFG.ConfigurationManager.AppSettings["EmailPort"];
        }

        public static string GetOutput()
        { 
            return CFG.ConfigurationManager.AppSettings["Output"];
        }

        public static string GetLog()
        {
            return CFG.ConfigurationManager.AppSettings["Log"];
        }
    }
}
